package de.haw.util;

public class Range {
	public static void checkRange(int rangeBegin, int rangeEnd, int value) {
		if (value < rangeBegin || value > rangeEnd)
			throw new IllegalArgumentException();
	}
	
	public static void checkRange(double rangeBegin, double rangeEnd, double value) {
		if (value < rangeBegin || value > rangeEnd)
			throw new IllegalArgumentException();
	}
	
	public static void checkGreaterEquals(double value, double value2) {
		if (value < value2)
			throw new IllegalArgumentException();
	}
}
